# -*- coding: utf-8 -*-
# @Time    : 2020/9/8 23:21
# @Author  : liupengfei
# @File    : urls.py

from django.urls import path
from rest_framework.routers import SimpleRouter

from .views import CommentViewSet, CommentLikeView, CommentArticleViewSet

urlpatterns = [
    path('article/', CommentArticleViewSet.as_view()),  # 查询评论
    path('<int:pk>/like/', CommentLikeView.as_view()),  # 点赞
]

router = SimpleRouter()
router.register('', CommentViewSet)  # 个人评论操作
urlpatterns += router.urls
